package Practice1;

public class T220054070356 {
    private static void printArea() {
        System.out.println();
    }
    private static void printArea(Circle circle) {
        System.out.println("圆的面积为 "+circle.getArea());
    }
    private static void printArea(Ladder ladder) {
        System.out.println("梯形的面积为 "+ladder.getArea());
    }
    private static void printArea(Rectangle rectangle) {
        System.out.println("矩形的面积为 "+rectangle.getArea());
    }
    public static void main(String[] args) {
        Circle circle = new Circle(2);
        Ladder ladder = new Ladder(2,3,2);
        Rectangle rectangle = new Rectangle(2,4);
        printArea(circle);
        printArea(ladder);
        printArea(rectangle);
    }
}
